/*
 * @Author: panghu chenjh@datamargin.com
 * @Date: 2024-04-17 14:27:40
 * @LastEditors: panghu chenjh@datamargin.com
 * @LastEditTime: 2024-06-28 09:44:01
 * @FilePath: \zheye\vue.config.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */

const path = require('path')
function resolve(dir) {
  return path.join(__dirname, dir)
}
module.exports = {
  publicPath: '/',
  assetsDir: 'static',
  productionSourceMap: false,
  devServer: {
    port: 8080,
    open: true,
    proxy: {
      '/daili': {
        target: 'http://api.vikingship.xyz', // 跨域接口的地址
        changeOrigin: true,
        pathRewrite: {
          '^/daili': ''
        }
      }
    }
  },
  configureWebpack: {
    name: '者也',
    output: {
      filename: '[name].[hash].bundle.js'
    },
    resolve: {
      alias: {
        '@': resolve('src')
      }
    },
    externals: {}
  }
}
